import request from '@/utils/request'

// 查询区列表
export function listArchiveArchArea(query) {
  return request({
    url: '/archive/ArchiveArchArea/list',
    method: 'get',
    params: query
  })
}

// 查询区详细
export function getArchiveArchArea(id) {
  return request({
    url: '/archive/ArchiveArchArea/' + id,
    method: 'get'
  })
}

// 新增区
export function addArchiveArchArea(data) {
  return request({
    url: '/archive/ArchiveArchArea',
    method: 'post',
    data: data
  })
}

// 修改区
export function updateArchiveArchArea(data) {
  return request({
    url: '/archive/ArchiveArchArea',
    method: 'put',
    data: data
  })
}

// 删除区
export function delArchiveArchArea(id) {
  return request({
    url: '/archive/ArchiveArchArea/' + id,
    method: 'delete'
  })
}
// 查询区列表（无分页）
export function listArchiveArchAreaAll(query) {
  return request({
    url: '/archive/ArchiveArchArea/listAll',
    method: 'get',
    params: query
  })
}